<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Whisper: CPcmCodec Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Whisper
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pri-methods">Private Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">CPcmCodec Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="CPcmCodec" --><!-- doxytag: inherits="ICodec" -->
<p><code>#include &lt;<a class="el" href="pcm__codec_8h_source.html">pcm_codec.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for CPcmCodec:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classCPcmCodec.png" usemap="#CPcmCodec_map" alt=""/>
  <map id="CPcmCodec_map" name="CPcmCodec_map">
<area href="classICodec.html" alt="ICodec" shape="rect" coords="0,0,82,24"/>
</map>
 </div></div>

<p><a href="classCPcmCodec-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCPcmCodec.html#aeb6d81e3c9464603aa557d347ba4932c">CPcmCodec</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCPcmCodec.html#a853bfd241605c49af2334b2b4c5dce2d">~CPcmCodec</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="namespaceNAudioFormats.html#a3bd6168a4f5f18e84873337a65d3062c">NAudioFormats::ECodec</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCPcmCodec.html#a1d40e77b6fa21cdf51363c4788552a9f">getCodecType</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCPcmCodec.html#a956ff5e1256b4bb4f82ec68835fca20a">convertFromS8ToDouble</a> (int8_t pSample)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual int8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCPcmCodec.html#a877fc5e4c6eed700f7880a9c10005d33">convertFromDoubleToS8</a> (double pSample)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCPcmCodec.html#a68afb835a6af5ec858ae8937be2ba609">convertFromU8ToDouble</a> (uint8_t pSample)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCPcmCodec.html#aa528dfb31315473013418dca5d05e000">convertFromDoubleToU8</a> (double pSample)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCPcmCodec.html#a856179d6519b685e125a6a8ee2d988d1">convertFromS16ToDouble</a> (int16_t pSample)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual int16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCPcmCodec.html#afe96f31534e539d74ba237f426cb5f0b">convertFromDoubleToS16</a> (double pSample)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCPcmCodec.html#a60d983c1f797b1dd90522a80a386af44">convertFromU16ToDouble</a> (uint16_t pSample)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCPcmCodec.html#af48e907f2ed635f626c38d66dc9ace6e">convertFromDoubleToU16</a> (double pSample)</td></tr>
<tr><td colspan="2"><h2><a name="pri-methods"></a>
Private Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCPcmCodec.html#a1bffcb9abd64fc1a2b91cc794bd4449a">CPcmCodec</a> (const <a class="el" href="classCPcmCodec.html">CPcmCodec</a> &amp;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classCPcmCodec.html">CPcmCodec</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCPcmCodec.html#aa8f603b5f6ac664e43e17b66005aaaf2">operator=</a> (const <a class="el" href="classCPcmCodec.html">CPcmCodec</a> &amp;)</td></tr>
</table>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="aeb6d81e3c9464603aa557d347ba4932c"></a><!-- doxytag: member="CPcmCodec::CPcmCodec" ref="aeb6d81e3c9464603aa557d347ba4932c" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CPcmCodec::CPcmCodec </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a853bfd241605c49af2334b2b4c5dce2d"></a><!-- doxytag: member="CPcmCodec::~CPcmCodec" ref="a853bfd241605c49af2334b2b4c5dce2d" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CPcmCodec::~CPcmCodec </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a1bffcb9abd64fc1a2b91cc794bd4449a"></a><!-- doxytag: member="CPcmCodec::CPcmCodec" ref="a1bffcb9abd64fc1a2b91cc794bd4449a" args="(const CPcmCodec &amp;)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CPcmCodec::CPcmCodec </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classCPcmCodec.html">CPcmCodec</a> &amp;&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="afe96f31534e539d74ba237f426cb5f0b"></a><!-- doxytag: member="CPcmCodec::convertFromDoubleToS16" ref="afe96f31534e539d74ba237f426cb5f0b" args="(double pSample)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int16_t CPcmCodec::convertFromDoubleToS16 </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>pSample</em></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Implements <a class="el" href="classICodec.html#a6afd4b23e8ddfafd5c34286aaf05a935">ICodec</a>.</p>

</div>
</div>
<a class="anchor" id="a877fc5e4c6eed700f7880a9c10005d33"></a><!-- doxytag: member="CPcmCodec::convertFromDoubleToS8" ref="a877fc5e4c6eed700f7880a9c10005d33" args="(double pSample)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int8_t CPcmCodec::convertFromDoubleToS8 </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>pSample</em></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Implements <a class="el" href="classICodec.html#ab33bc0554038c4a16dfa013730f89a64">ICodec</a>.</p>

</div>
</div>
<a class="anchor" id="af48e907f2ed635f626c38d66dc9ace6e"></a><!-- doxytag: member="CPcmCodec::convertFromDoubleToU16" ref="af48e907f2ed635f626c38d66dc9ace6e" args="(double pSample)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint16_t CPcmCodec::convertFromDoubleToU16 </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>pSample</em></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Implements <a class="el" href="classICodec.html#a19b158526af31b63259ea503b4775bef">ICodec</a>.</p>

</div>
</div>
<a class="anchor" id="aa528dfb31315473013418dca5d05e000"></a><!-- doxytag: member="CPcmCodec::convertFromDoubleToU8" ref="aa528dfb31315473013418dca5d05e000" args="(double pSample)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t CPcmCodec::convertFromDoubleToU8 </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>pSample</em></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Implements <a class="el" href="classICodec.html#a4fbf30da96b9c8ff5677e96eb79c5f69">ICodec</a>.</p>

</div>
</div>
<a class="anchor" id="a856179d6519b685e125a6a8ee2d988d1"></a><!-- doxytag: member="CPcmCodec::convertFromS16ToDouble" ref="a856179d6519b685e125a6a8ee2d988d1" args="(int16_t pSample)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double CPcmCodec::convertFromS16ToDouble </td>
          <td>(</td>
          <td class="paramtype">int16_t&#160;</td>
          <td class="paramname"><em>pSample</em></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Implements <a class="el" href="classICodec.html#a932b130f0ea5582384463ea6233852f2">ICodec</a>.</p>

</div>
</div>
<a class="anchor" id="a956ff5e1256b4bb4f82ec68835fca20a"></a><!-- doxytag: member="CPcmCodec::convertFromS8ToDouble" ref="a956ff5e1256b4bb4f82ec68835fca20a" args="(int8_t pSample)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double CPcmCodec::convertFromS8ToDouble </td>
          <td>(</td>
          <td class="paramtype">int8_t&#160;</td>
          <td class="paramname"><em>pSample</em></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Implements <a class="el" href="classICodec.html#aa352c902221b6c813033857eae1f1441">ICodec</a>.</p>

</div>
</div>
<a class="anchor" id="a60d983c1f797b1dd90522a80a386af44"></a><!-- doxytag: member="CPcmCodec::convertFromU16ToDouble" ref="a60d983c1f797b1dd90522a80a386af44" args="(uint16_t pSample)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double CPcmCodec::convertFromU16ToDouble </td>
          <td>(</td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>pSample</em></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Implements <a class="el" href="classICodec.html#a132e3e66477b84ac0ae68d02348bcb13">ICodec</a>.</p>

</div>
</div>
<a class="anchor" id="a68afb835a6af5ec858ae8937be2ba609"></a><!-- doxytag: member="CPcmCodec::convertFromU8ToDouble" ref="a68afb835a6af5ec858ae8937be2ba609" args="(uint8_t pSample)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double CPcmCodec::convertFromU8ToDouble </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>pSample</em></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Implements <a class="el" href="classICodec.html#a9a5757b34cc8008ee89c047f70510364">ICodec</a>.</p>

</div>
</div>
<a class="anchor" id="a1d40e77b6fa21cdf51363c4788552a9f"></a><!-- doxytag: member="CPcmCodec::getCodecType" ref="a1d40e77b6fa21cdf51363c4788552a9f" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespaceNAudioFormats.html#a3bd6168a4f5f18e84873337a65d3062c">NAudioFormats::ECodec</a> CPcmCodec::getCodecType </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Implements <a class="el" href="classICodec.html#a7372c452a54bcf4dfcaab3bb2031c277">ICodec</a>.</p>

</div>
</div>
<a class="anchor" id="aa8f603b5f6ac664e43e17b66005aaaf2"></a><!-- doxytag: member="CPcmCodec::operator=" ref="aa8f603b5f6ac664e43e17b66005aaaf2" args="(const CPcmCodec &amp;)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classCPcmCodec.html">CPcmCodec</a>&amp; CPcmCodec::operator= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classCPcmCodec.html">CPcmCodec</a> &amp;&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="pcm__codec_8h_source.html">pcm_codec.h</a></li>
<li><a class="el" href="pcm__codec_8cxx.html">pcm_codec.cxx</a></li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Wed Jan 25 2012 22:00:44 for Whisper by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.5.1
</small></address>

</body>
</html>
